<template>
  <div>
    <router-view></router-view>
    <van-tabbar v-model="active" route>
      <van-tabbar-item replace to="/article" icon="home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item replace to="/findroom" icon="search"
        >找房</van-tabbar-item
      >
      <van-tabbar-item replace to="/info" icon="newspaper-o"
        >资讯</van-tabbar-item
      >
      <van-tabbar-item replace to="/user" icon="contact">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'hk-layout',
  data() {
    return {
      active: 0
    }
  },
  methods: {}
}
</script>

<style scoped lang="less">
.van-tabbar-item--active {
  color: #47b347;
}
.van-tabbar--fixed {
  border-top: 1px solid rgb(226, 225, 225);
}
</style>
